package com.itheima.包装类;

public class MyIntegerDemo4 {
    public static void main(String[] args) {
        String s1="100";
        int i1=100;
        System.out.println(s1+i1);//String字符串加任何类型都是字符串

        int i2=Integer.parseInt(s1);
        System.out.println(i2+i1);//String转int

        int i3=100;
        String s2=i3+"";
        System.out.println(s2+100);//int转字符串


      String b1="200";
        int b2=Integer.parseInt(b1);
        System.out.println(b2+b1);


    }
}
